package com.hxs.colorfultest2.domain;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Collection;

public class User  {
    private int id;
    private String username;
    private String password;
    private int role_id;
    private String headpic;
    private String managerFlag;

    public User() {
    }

    public User(String username, String password, int role_id, String headpic, String managerFlag) {
        this.username = username;
        this.password = password;
        this.role_id = role_id;
        this.headpic = headpic;
        this.managerFlag = managerFlag;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }



    public void setUsername(String username) {
        this.username = username;
    }



    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public String getHeadpic() {
        return headpic;
    }

    public void setHeadpic(String headpic) {
        this.headpic = headpic;
    }

    public String getManagerFlag() {
        return managerFlag;
    }

    public void setManagerFlag(String managerFlag) {
        this.managerFlag = managerFlag;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role_id=" + role_id +
                ", headpic='" + headpic + '\'' +
                ", managerFlag='" + managerFlag + '\'' +
                '}';
    }
}



